home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSCCCCGGGGeeeettttSSSSccccaaaannnnLLLLiiiinnnneeee((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttSSSSccccaaaannnnLLLLiiiinnnneeee((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- SCGetScanLine, SCGetFD, SCDataReady - retrieving scan data
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
-
- iiiinnnntttt SSSSCCCCGGGGeeeettttSSSSccccaaaannnnLLLLiiiinnnneeee((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, vvvvooooiiiidddd ****bbbbuuuuffff,,,, lllloooonnnngggg bbbbyyyytttteeeessss))));;;;
-
- iiiinnnntttt SSSSCCCCGGGGeeeettttFFFFDDDD((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss))));;;;
-
- iiiinnnntttt SSSSCCCCDDDDaaaattttaaaaRRRReeeeaaaaddddyyyy((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _S_C_G_e_t_S_c_a_n_L_i_n_e retrieves scan line data. _s specifies a connection to a
- scanner for which _S_C_S_c_a_n(3) has been called previously. _b_u_f points to
- memory into which the data will be stored, and _b_y_t_e_s should be set to the
- number of bytes in a scan line as determined by _S_C_G_e_t_S_c_a_n_S_i_z_e(3).
-
- For color planar data, _S_C_G_e_t_S_c_a_n_L_i_n_e will need to be called once for each
- line in each plane of data. For 100 lines of 24 bit planar RGB data,
- _S_C_G_e_t_S_c_a_n_L_i_n_e will be called a total of 300 times, with the first 100
- calls retrieving the red plane, the second 100 calls retrieving the green
- plane, and the third 100 calls retrieving the blue plane. For other
- types of data, _S_C_G_e_t_S_c_a_n_L_i_n_e will need to be called once for each line of
- data. The number of lines can be determined by calling _S_C_G_e_t_S_c_a_n_S_i_z_e(3).
-
- _S_C_G_e_t_S_c_a_n_L_i_n_e cannot be called to retrieve scan data if scanning was
- initiated by a call to _S_C_S_c_a_n_F_D(3).
-
- If scanning was initiated by a call to _S_C_S_c_a_n(3), _S_C_G_e_t_F_D returns a file
- descriptor from which scan data can be read. This file descriptor can be
- used with the _s_e_l_e_c_t(2) system call to determine when _S_C_G_e_t_S_c_a_n_L_i_n_e(3)
- should be called, or the data can be read directly from the file
- descriptor as an alternative means of retrieving the scan data.
-
- If scanning was initiated by a call to _S_C_S_c_a_n_F_D(3), _S_C_G_e_t_F_D will return
- the file descriptor that was passed to _S_C_S_c_a_n_F_D(3).
-
- _S_C_D_a_t_a_R_e_a_d_y is used to determine whether the scanner driver has prepared
- any data for transfer. It can be used to determine when _S_C_G_e_t_S_c_a_n_L_i_n_e
- should be called. It should not be used if scanning was initiated by a
- call to _S_C_S_c_a_n_F_D(3).
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _S_C_G_e_t_S_c_a_n_L_i_n_e returns 0 if successful, and -1 if an error occurs.
-
- _S_C_G_e_t_F_D returns a file descriptor from which scan data may be read if
- scanning was initiated by a call to _S_C_S_c_a_n(3). If scanning was initiated
- by a call to _S_C_S_c_a_n_F_D, _S_C_G_e_t_F_D returns the file descriptor that was
- passed to _S_C_S_c_a_n_F_D. If an error occurs, _S_C_G_e_t_F_D returns -1.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSCCCCGGGGeeeettttSSSSccccaaaannnnLLLLiiiinnnneeee((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttSSSSccccaaaannnnLLLLiiiinnnneeee((((3333))))
-
-
-
- _S_C_D_a_t_a_R_e_a_d_y returns 1 if data is ready to be retrieved from the scanner.
- 0 is returned if data is not ready, and -1 is returned if an error
- occurs.
-
- If the return value of one of these functions indicates that an error has
- occurred, the cause of the error can be determined by inspecting the
- value of the global variable _S_C_e_r_r_n_o.
-
- EEEEXXXXEEEECCCCUUUUTTTTIIIIOOOONNNN EEEERRRRRRRROOOORRRR CCCCOOOODDDDEEEESSSS
- _S_C_G_e_t_S_c_a_n_L_i_n_e, _S_C_G_e_t_F_D, and _S_C_D_a_t_a_R_e_a_d_y will fail under the following
- circumstances.
-
- SCESCANFD _S_C_G_e_t_S_c_a_n_L_i_n_e called after _S_C_S_c_a_n_F_D
-
- SCECOMM Error communicating with scanner driver
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _l_i_b_s_c_a_n(3), _S_C_S_c_a_n(3), _S_C_S_c_a_n_F_D(3).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-